/*
 * @Descripttion:调用后端上传接口的函数
 * @Author: congz
 * @Date: 2020-07-12 15:44:02
 * @LastEditors: congz
 * @LastEditTime: 2020-08-05 15:36:07
 */

import axios from 'axios'
import request from '@/api/utils/request'
// 请求图片签名
// const UploadAvatar = fileName =>
//   axios.post('/api/v1/avatar', { filename: fileName }).then(res => res.data)
export function uploadAvatar(form){
  let target = '/uploadAvatar/'
  return request.post(target,form)
}

// export { UploadAvatar }
